package cn.chenhao.org.domain;

import cn.chenhao.basic.domain.BasicDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BasicDomain {
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;

    /** 一对多关联对象  引用属性 */
    private Employee manager;
    private Department parent;

    private List<Department> children = new ArrayList<>();

}
